﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Library.DAO;
using Library.Entity;

namespace DesignLife
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        private Categories cate;
        private CategoriesDAO catedao;
        public MasterPage()
        {
            cate= new Categories();
            catedao= new CategoriesDAO();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
               CategoriesDAO catedao= new CategoriesDAO();
                IList<Categories> lstcate = catedao.GetService();
                rptmenu.DataSource = lstcate;
                rptmenu.DataBind();
            }
        }
    }
}